<?php
/*=============================================================================
#
# Author: zilaiye - zilaiye@cpweb.net.cn
# url: http://6c.719471.net
# QQ : 342023971
#
# Last modified: 2015-02-18 05:50
#
# Filename: config.php
#
# Description: 
#
=============================================================================*/
//配置文件
$config = require(QY_ROOT."qy.config.php");
$array = array(
	//惯例配置
	'APP_GROUP_LIST'=>'Web,Wap,Api,Admin',
	'DEFAULT_MODULE'=>'Index',
	//默认值设置
	'DEFAULT_THEME'=>'default',
	'DEFAULT_GROUP'=>'Web',
	'DEFAULT_MODULE'=>'Index',
	'DEFAULT_ACTION'=>'index',
	'DEFAULT_AJAX_RETURN'=>'JSON',
	//Cookie设置
	'COOKIE_EXPIRE'=>86400,
	'COOKIE_PREFIX'=>'QY6C_',
	//数据库配置
	'DB_TYPE'=>'mysql',
	'DB_HOST'=>'localhost',
	'DB_NAME'=>'qy6c',
	'DB_USER'=>'root',
	'DB_PWD'=>'123456',
	'DB_PORT'=>'3306',
	'DB_PREFIX' => 'ecs_',
	'DB_FIELDS_CACHE'=>true,
	//模板引擎设置
	'TMPL_TEMPLATE_SUFFIX'=>'.tpl',
	'TMPL_FILE_DEPR'=>'-',
	//URL设置
	'URL_CASE_INSENSITIVE'=>true,
	'URL_MODEL'=>0,
	'URL_PATHINFO_DEPR'=>'-',
	'URL_HTML_SUFFIX'=>'.html',
	//行为配置
	//ParseTemplate行为配置
	/*
	'TMPL_ENGINE_TYPE'=>'Smarty',
	'TMPL_ENGINE_CONFIG'=>array(
		'caching'=>true,
		'cache_dir'=>TEMP_PATH,
		'left_delimiter'=>'{QY:',
	),
	*/
	'TMPL_L_DELIM'=>'{QY:',
	//多语言
	'LANG_SWITCH_ON'=>true,
	'LANG_AUTO_DETECT' => true,
	'LANG_LIST'        => 'zh-cn',
	'VAR_LANGUAGE'     => 'l',
);
return array_merge($array,$config);
?>
